package cn.ecnu.common.utils;

import cn.ecnu.pojo.recommend.RecommendRequire;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ThreadRecommender implements Runnable{
    private RecommendRequire recommendRequire;
    @Resource
    TencentCloudUtil tencentCloudUtil;

    public void setRecommendRequire(RecommendRequire recommendRequire){
        this.recommendRequire = recommendRequire;
    }
    @Override
    public void run() {
        tencentCloudUtil.allMatchForRecommender(recommendRequire);
    }
}
